<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <link rel="icon" href="__PUBLIC__/imgs/icon/favicon.ico" type="image/ico" sizes="16x16">
    <title><{$title}></title>
    <link rel="stylesheet" href="__PUBLIC__/css/bootstrap.min.css">
    <link rel="stylesheet" href="__PUBLIC__/li.css">

</head>
<body>

    <!-- 导航条开始 -->
        <nav class="navbar-fixed-top" style="background-color: #fff;">
            <div class="container-fluid">
                <div class="navbar-header">
                    <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
                        <!-- <span class="sr-only">Toggle navigation</span> -->
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button>
                    <!-- 网页logo -->
                    <a class="navbar-brand" href="<{:U('Index/index')}>">
                        <img src="__PUBLIC__/imgs/icon/zhihu-logo03.png" id="logo"> 
                    </a>
                </div>

                <!-- 导航条内容 content -->
                <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">

                    <ul class="nav navbar-nav">
                        <li><a href="<{:U('Article/index')}>" style="font-size:15px; font-weight:700; color: #666;" > 文章首页</a></li>
                        
                    </ul>

                    <ul class="nav navbar-nav navbar-right" style="margin-right: 50px;">
                        <li>
                            <!-- 写文章 -->
                                <a href="<{:U('Write/index')}>" style="font-size:15px; font-weight:700; color: #666;" ><span class="glyphicon glyphicon-list-alt"></span> 写文章</a>
                        </li>
                        <li>
                            <!-- 我的 -->
                                <a href="<{:U('People/index')}>" style="font-size:15px; font-weight:700; color: #666;">我的文章</a>
                        </li>
                    </ul>
                </div><!-- /.navbar-collapse -->
            </div><!-- /.container-fluid -->
        <div class="divline"></div>
        </nav><!--结束导航条-->


<div class="container">
    <div class="col-md-8 col-md-offset-2">
        <!-- 左侧内容正文 遍历话题列表 -->
        <div class="row">
            <div class="col-md-12 mt20">
                <!-- 判断是否有数据 -->
                <empty name="data">
                    <div class="w100 h5 mt10 text-center" style="background-color:#eee; height: 80px; line-height: 80px;">暂无更多相关文章  <a href="<{:U('Article/index')}>">回到文章首页</a></div>
                <else/>
                    <!-- 文章列表 -->
                    <div class="w100">
                        <p class="mb10"><b>最新文章</b></p>
                        <div class="divline"></div>
                    </div>
                    <volist name="data" id="vo">
                        <div class="w100 mt20" style="border-bottom: 1px dashed #ccc">
                            <p class="mt20 mb20 h4"><a href="<{:U('Article/show','arid='.$vo['arid'])}>"><b><{$vo.artitle}></b></a></p>
                            <div class="w100">
                                <notempty name="vo.arimage">
                                    <!-- 有主图 -->
                                    <div class="w40 pull-left">
                                        <img src="__PUBLIC__/imgs/<{$vo.arimage}>" height="150px" width="220px" style="border-radius: 10px;">
                                    </div>
                                    <div class="w60 pull-left">
                                        <p>
                                            <{$vo.part}>...&nbsp;&nbsp;
                                            <a href="<{:U('Article/show','arid='.$vo['arid'])}>">查看全文</a>
                                        </p>
                                        <p class="h6">
                                            文章作者: &nbsp;&nbsp;<a href="<{:U('People/index','uid='.$vo['uid'])}>"><{$vo.uname}></a>&nbsp;&nbsp;
                                            <b><{$vo.artime}></b>&nbsp;&nbsp;
                                            <!-- <a href="" class="collectAr h6 text-right" topic_id="<{//$vo.id}>">收藏</a> -->
                                        </p>
                                    </div>
                                    <div class="clearfix"></div>
                                    <div class="mt20"></div>
                                <else/>
                                    <!-- 无主图 -->
                                    <div class="w100">
                                        <p><{$vo.part}>... &nbsp;&nbsp;</p>
                                        <p class="h6">
                                            文章作者: &nbsp;&nbsp;<a href="<{:U('People/index','uid='.$vo['uid'])}>"><{$vo.uname}></a>&nbsp;&nbsp;
                                            <b><{$vo.artime}></b>&nbsp;&nbsp;
                                        </p>
                                        <div class="mt20"></div>
                                    </div>

                                </notempty>
                            </div>
                        </div>
                    </volist>
                    <div class="clearfix"></div>
                    <div class="mt30 mb20">
                        <a href="<{:U('Article/index', array('p'=>$p))}>" class="btn btn-default btn-sm form-control">查 看 更 多</a>
                    </div>
                </empty>
            </div>
        <div class="clearfix"></div>
    </div>
</div>


</form>

    <!--引入jquery-->
    <script src="__PUBLIC__/js/jquery.min.js"></script>
    <!--引入bootstrap 的js-->
    <script src="__PUBLIC__/js/bootstrap.min.js"></script>


</body>
</html>







